<%@ page import="com.muyonghui.myjavaweb.db.entities.UserEntity" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>hello</title>
</head>
<body>
<ol>
    <%for (UserEntity e : (List<UserEntity>)request.getAttribute("users")) { %>
    <li>名字：<%out.print(e.getName()); %>, 年龄：<%out.print(e.getAge()); %></li>
    <%}%>
</ol>
<a href="adduser">添加用户</a>
</body>
</html>
